<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@page contentType="text/html;charset=UTF-8" %>
<%@ include file="/commons/taglibs.jsp" %>
<%@ taglib tagdir="/WEB-INF/tags/simpletable" prefix="simpletable"%>
<html>
  <head>
    <title>办公助手系统</title>
	<%@include file="meta.jsp"%>
	<script src="${ctx}/js/common/jquery-1.6.2.min.js" type="text/javascript"></script>
	<script language="javascript" type="text/javascript" src="${ctx}/js/lhgdialog/lhgdialog.min.js"></script>
	<script src="${ctx}/js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
  </head>
  
  <body>
    <div class="Teg_body">
    	<%@include file="header.jsp"%>
    	
    	<div class="Teg_content">
    		<div class="content_left i-pane" id="zhd_LeftPane" paneid="LeftPane">
    			<div class="m-second-menu-title">
	    			<span class="Head">工具共享</span>
    			</div>
    			<div class="m-second-menu-ct ZHDAlignleft">
	    			<div class="accordion-3-container">
	    				<ul class="accordion-3">
	    					<c:forEach items="${lbList}" var="listrow">
	    					<li ${listrow.id == category?'class="active"':''}><div class="level-first"><a href="soft_search.do?category=${listrow.id}">${listrow.name}</a></div></li>
	    					</c:forEach>
	    				</ul>
	    			</div>
    			</div>
    		</div>
    		<div class="content_right">
    			<div class="second_breadcrumb">
    				<span class="current_position">您的当前位置：<a href="${ctx}">首页</a>></span><span><a href="#" class="SkinObject">工具共享</a></span>
    			</div>
    			<div class="content_ct i-pane" id="zhd_ContentPane" style="margin-top: 5px;">
    				<s:form action="soft_search.do" method="post">
    				<div class="search_cond">
    					标题：<s:textfield key="zt" title="请输入名称主题" cssClass="form-txtinput" id="zt" maxlength="20" value="%{model.zt}"/>
    					类别：<mytag:select id="category" title="请输入类别" name="category" sql="basedata" isSql="false" condition="12" dataType="Long" listKey="id" listValue="name" headerKey="" headerValue="请选择"/>
    					<input type="submit" value="查询"/>
    				</div>
    				<table width="100%" align="center" class="list-table" borderColor="#e3ecf6" bgColor="#e3ecf6" border="0" cellSpacing="1" cellPadding="0">
	    				<tr style="background: #f6fbff;" height="30">
	    					<td width="5%" align="center">序号</td>
	    					<td align="center">标题</td>
	    					<td width="16%" align="center">类别</td>
	    					<td width="16%" align="center">版本</td>
	    					<td width="16%" align="center">操作</td>
	    				</tr>
	    				<c:forEach items="${page.result}" var="item" varStatus="status">
						<tr height="30" ${status.index%2 == 0?'class="gray"':''}>
							<td align="center">${page.thisPageFirstElementNumber + status.index}</td>
							<td align="center">${item.name}</td>
							<td align="center">${item.categoryName}</td>
							<td align="center">${item.ver}</td>
							<td align="center">
								<a href="#" onclick="OpenCase('${item.id}')">查看</a>&nbsp;
							</td>
						</tr>
						</c:forEach>
						
						<c:if test="${fn:length(page.result)==0}">
						<tr>
					    	<td colspan="5"><div class="note_red_in_div">系统没有查找到符合条件的数据！</div></td>
					    </tr>
					    </c:if>
    				</table>
    				<input type="hidden" name="pageNumber" value="${page.thisPageNumber}"/>
					<input type="hidden" name="pageSize" value="${page.pageSize}"/>
					<simpletable:homePageToolbar page="${page}"/>
    				</s:form>
    			</div>
    		</div>
    		<div class="clear"></div>
    	</div>
    	<%@include file="bottom.jsp"%>
    </div>
  </body>
</html>
<script type="text/javascript">
function OpenCase(id){
  $.dialog({id:'abc', title:'信息详情', content: 'url:${ctx}/soft_view.do?id='+id+'&timestamp='+new Date().getTime(), max:false,min:false,width:550, height:400});
}

</script>